package com.cyq.blog.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;  

@Data
public class Blog implements Serializable {
    private static final long serialVersionUID = 1L;  

    @TableId(type = IdType.ASSIGN_UUID)
    private String blogId;
    private String blogTitle;
    private String blogCustomUrl;
    private String blogCoverPhoto;
    private String blogContent;
    private String blogCategoryId;
    private String blogCategoryName;
    private String blogStatus;
    private Long blogViews;
    private String enableComment;
    @TableLogic(value = "0", delval = "1")
    private String isDeleted;
    @Version
    private Integer version;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
